<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE HTML>
<html>
<head>
    <title>登录页面</title>
    <meta http-equiv=Content-Type content="text/html; charset=utf-8">
    <link href="${pageContext.request.contextPath}/css/style.css"
          type=text/css rel=stylesheet>

    <script src="${pageContext.request.contextPath}/js/jquery-1.11.3.min.js"/>

    <meta content="MSHTML 6.00.2600.0" name=GENERATOR>
    <script>
        // 判断是登录账号和密码是否为空
        function check() {
            let username = $("#username").val();
            let password = $("#password").val();
            if (username == "" || password == "") {
                alert("账号密码不能为空！")
                return false;
            }
            return true;
        }
    </script>
</head>


<body>
<div ALIGN="center">
    <table border="0" width="250px" cellspacing="0" cellpadding="0" id="table1">
        <div class="login">
            <h1>银行客户管理系统</h1>
            <form action="${pageContext.request.contextPath }/login.action" method="post" onsubmit="check()">
                <input type="text" name="username" placeholder="请输入用户名"/>
                <input type="password" name="password" placeholder="请输入密码"/>
                <button type="submit" class="btn btn-primary btn-block btn-large">登陆</button>
            </form>
        </div>
    </table>
</div>
</body>
</html>
